package com.example.jetpackcomposestate.examples

import androidx.compose.foundation.layout.Column
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp

/**
 * @author huangzehui
 * @date 6/5/2024 下午11:25 周一
 * @description
 */


@Composable
fun CompositionSample3() {
    Column {

        CompositionLocalProvider(LocalElevations provides CardElevation.high) {
            MyCard(backgroundColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.05f)) {

            }
        }
        CompositionLocalProvider(LocalElevations provides CardElevation.low) {
        MyCard(backgroundColor = MaterialTheme.colorScheme.onSurface.copy(alpha = 0.05f)) {

        }}
    }
}